|
SCALE LIMB
This command will change the scale of the specified limb within the 3D object by affecting the percentage scale value of all three dimensions.
SCALE LIMB Object Number, Limb Number, XSize, YSize, ZSize
SCALE LIMB Object Number, Limb Number, XSize, YSize, ZSize, Bounds Flag
Object Number
Integer
The object number
Limb Number
Integer
The limb number
XSize
Float
The x percentage scale value
YSize
Float
The y percentage scale value
ZSize
Float
The z percentage scale value
Bounds Flag
Integer
Specify a value of zero to disable, and a value of one to enable.
This command does not return a value.
Specifying a limb number of zero provides access to the objects own root data, and should not normally be used in this way. The parameters should be specified using integer values.
sync on : sync rate 60 : hide mouse:cls 0
ObjectNumber=1
LimbNumber=7
rem Load object
load object "model.x",ObjectNumber
load image "iron.jpg",1
perform checklist for object limbs ObjectNumber
for c=1 to checklist quantity()
print checklist string$(c)
next c
while mouseclick()=0
set cursor 0,0
scale limb ObjectNumber,LimbNumber,200,200,200
sync
endwhile
delete object ObjectNumber
delete image 1
end
BASIC3D Commands Menu
Index
|